const pool = require('../config/db');

// 获取村集体列表
const getVillageCollectiveList = async () => {
  const query = 'SELECT id, name FROM VillageCollective';
  const [results] = await pool.query(query);
  return results;
};

module.exports = {
  getVillageCollectiveList
};